﻿using HCQ2_Model.APPModel.ParamModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VLine.Params
{
    /// <summary>
    ///  问题反馈
    /// </summary>
    public class FeedBackModel: BaseAPI
    {
        /// <summary>
        ///  目录id
        /// </summary>
        public int folder_id { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "feed_title：标题必填项")]
        public string feed_title { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string feed_content { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string feed_phone { get; set; }
        /// <summary>
        /// base64图片列表
        /// </summary>
        public List<FeedBackPic> picture { get; set; }
        /// <summary>
        ///  来源【app、pc、wechat...，非必填】
        /// </summary>
        public string feed_source { get; set; }
    }
    public class FeedBackPic
    {
        /// <summary>
        /// base64图片
        /// </summary>
        public string picFile { get; set; }
    }
    public class FeedStatus : BaseAPI
    {
        //反馈id
        public int feed_id { get; set; }
        //-1=已删除；0=未关闭；1=已关闭
        public int feed_status { get; set; }
    }

    public class DeleteReplyModel
    {
        //问题回复id
        public int id { get; set; }
    }

    public class FeedListModel
    {
        /// <summary>
        ///  菜单id
        /// </summary>
        public int folder_id { get; set; }
        /// <summary>
        ///  用户关键代码
        /// </summary>
        public string userid { get; set; }
        public int user_id { get; set; }
        /// <summary>
        ///  关键字
        /// </summary>
        public string keyword { get; set; }
        /// <summary>
        ///  状态
        /// </summary>
        public int feed_status { get; set; } = 2;
        /// <summary>
        ///  来源【app、pc、wechat...，非必填】
        /// </summary>
        public string feed_source { get; set; }
        /// <summary>
        ///  开始日期
        ///  yyyyMMddHHmmss
        /// </summary>
        public string start_date { get; set; }
        /// <summary>
        ///  结束日期
        ///  yyyyMMddHHmmss
        /// </summary>
        public string end_date { get; set; }
        /// <summary>
        ///  第几页
        /// </summary>
        public int page { get; set; } = 1;
        /// <summary>
        ///  每页数量
        /// </summary>
        public int rows { get; set; } = 10;
    }
    /// <summary>
    ///  问题回复
    /// </summary>
    public class FeedReplyModel: BaseAPI
    {
        //问题反馈id
        public int feed_id { get; set; }
        //回复内容
        [Required(ErrorMessage = "reply_content：回复内容必填项")]
        public string reply_content { get; set; }
    }
}